package com.example.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

//秒杀商品实体
@Data
public class SkillGoods {
    private Integer id;
    // 对应的商品skuid，对于秒杀商品来说，它的规格应当是确定的
    private Long skuId;
    private BigDecimal skillPrice;
    //此次秒杀的商品库存数量
    private Integer skillStock;
    private String title;
    private String defaultImage;
    //秒杀开始和结束时间，其中秒杀开始的时间，暂时规定为12 18 20 22四个时段
    private LocalDateTime skillBeginTime;
    private LocalDateTime skillEndTime;
    private String createBy;
    private String updateBy;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    @TableField(exist = false)
    private Integer sellCount;
}